﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataForest.Utilities;

namespace DataForest.ViewModel.Dialogs
{
    public class CSVDialogViewModel : BaseDialogModel
    {
        public CSVDialogViewModel()
        {
            this.Title = "Als .csv Speichern";
            this.SeperatorChars = new List<string>() { ";", ":", ",", ".", "|" };
            this.SeperatorChar = ";";
            this.OkayButton = "OK";
            this.CancelButton = "Abbrechen";
            this.FirstRowColumnNames = true;
        }

        private string seperatorChar;
        private bool firstRowColumnNames;
        private string cancelButton;
        private string okayButton;
        private List<string> seperatorChars;

        public string SeperatorChar
        {
            get
            {
                return seperatorChar;
            }
            set
            {
                if (seperatorChar != value)
                {
                    seperatorChar = value;
                    OnPropertyChanged("SeperatorChar");
                }
            }
        }
        public bool FirstRowColumnNames
        {
            get
            {
                return firstRowColumnNames;
            }
            set
            {
                if (firstRowColumnNames != value)
                {
                    firstRowColumnNames = value;
                    OnPropertyChanged("FirstRowColumnNames");
                }
            }
        }
        public string CancelButton
        {
            get
            {
                return cancelButton;
            }
            set
            {
                if (cancelButton != value)
                {
                    cancelButton = value;
                    OnPropertyChanged("CancelButton");
                }
            }
        }
        public string OkayButton
        {
            get
            {
                return okayButton;
            }
            set
            {
                if (okayButton != value)
                {
                    okayButton = value;
                    OnPropertyChanged("CancelButton");
                }
            }
        }
        public List<string> SeperatorChars
        {
            get
            {
                return seperatorChars;
            }
            set
            {
                if (seperatorChars != value)
                {
                    seperatorChars = value;
                    OnPropertyChanged("SeperatorChars");
                }
            }
        }
    }
}
